﻿
GO

IF NOT EXISTS (SELECT Name FROM Application WHERE Name = 'Document Management' AND EnterpriseId = 1)
BEGIN
INSERT INTO Application(Name,Title,EnterpriseId,Area)
     VALUES('Document Management','Document Management',1,'DocumentManagement')
END


GO
IF NOT EXISTS (SELECT Name FROM Application WHERE Name = 'Sales' AND EnterpriseId = 1)
BEGIN
INSERT INTO Application(Name,Title,EnterpriseId,Area)
     VALUES('Sales','Sales',1,'Sales')
END

GO
IF NOT EXISTS (SELECT Name FROM Application WHERE Name = 'Re Order' AND EnterpriseId = 1)
BEGIN
INSERT INTO Application(Name,Title,EnterpriseId,Area)
     VALUES('Re Order','Re Order',1,'ReOrder')
END